package mvc.model.dao;

import mvc.common.BaseDao;
import mvc.model.pojos.AddressBean;

import java.util.List;

public interface AddrDao {
    BaseDao basedao = new BaseDao();
    //添加地址
    void addAddress(AddressBean address);

    //修改/删除地址
    void upAddress(AddressBean address, int number);

    //查询默认地址
    AddressBean selectOne(int isdefault, int uid);

    //查询所有地址
    List<AddressBean> select(int uid, int flag);

    //根据编号查询地址
    AddressBean queryOne(int anumber);
}
